package com.cnswhy.cloud.server.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 商品详情表
 * </p>
 *
 * @author cnswhy
 * @since 2020-11-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ShopProductDetailPageDTO", description = "商品详情表")
public class ShopProductDetailPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    @NotEmpty(message = "商品名称不能为空")
    @Length(max = 255, message = "商品名称长度不能超过255")
    private String productName;
    /**
     * 拼购区1是2否
     */
    @ApiModelProperty(value = "拼购区1是2否")
    private Integer spellArea;
    private Integer classifyParentId;
    private Integer status;
    private Long merchantId;
    private Integer spellProduct;


}
